import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import './assets/icon/iconfont/iconfont.css'
// import { elMessage } from '@/components/Function/Message.js'
//引入全局图标 element-plus
import * as ElementPlusIcons from '@element-plus/icons-vue'

const app = createApp(App);
//循环注册全局图标 element-plus
for (const [key, component] of Object.entries(ElementPlusIcons)) {
    app.component(key, component)
}
// app.config.globalProperties.$elMessage = elMessage; //全局注册message
app.use(store)
.use(router)
.mount('#app')

